package com.github.data_manage.dao

import com.github.data_manage.domain.po.FundTranche

/**
 *@author CHN
 *@since 2024-08-10 14:48
 */
interface FundTrancheDao : BaseDao<FundTranche> {

    fun findAllByFundId(fundId: Int): List<FundTranche>

    fun deleteAllByFundIdEqualsAndIdNotIn(fundId: Int, id: Collection<Int>): Int

    fun findByName(name: String): FundTranche?

    fun deleteAllByFundId(fundId: Int)
}